package com.team7.happycommunity.parkservice.dao;

import com.team7.happycommunity.parkservice.pojo.ParkingInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ParkingInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ParkingInfo record);

    int insertSelective(ParkingInfo record);

    ParkingInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ParkingInfo record);

    int updateByPrimaryKey(ParkingInfo record);

    @Select("select * from parking_info where community_id = #{areaid} and status = 0")
    List<ParkingInfo> selectByAreaId(Integer areaid);
}